package com.nbot.server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.nbot.server.mapper.master.ChecklogProMapper;
import com.nbot.server.domain.ChecklogProDO;
import com.nbot.server.service.ChecklogProService;



@Service
public class ChecklogProServiceImpl implements ChecklogProService {
	@Autowired
	private ChecklogProMapper checklogProMapper;
	
	@Override
	public ChecklogProDO get(Long checkatid){
		return checklogProMapper.get(checkatid);
	}
	
	@Override
	public List<ChecklogProDO> list(Map<String, Object> map){
		return checklogProMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return checklogProMapper.count(map);
	}
	
	@Override
	public int save(ChecklogProDO checklogPro){
		return checklogProMapper.save(checklogPro);
	}
	
	@Override
	public int update(ChecklogProDO checklogPro){
		return checklogProMapper.update(checklogPro);
	}
	
	@Override
	public int remove(Long checkatid){
		return checklogProMapper.remove(checkatid);
	}
	
	@Override
	public int batchRemove(Long[] checkatids){
		return checklogProMapper.batchRemove(checkatids);
	}

	@Override
	public long getMaxAutoId() {
		if(checklogProMapper.getMaxAutoId()==null){
			return 0;
		} else {
			return Long.parseLong(checklogProMapper.getMaxAutoId());
		}
	}

}
